//
//  MujiDubVCTableViewCell.h
//  testdemo
//
//  Created by yule on 2017/5/17.
//  Copyright © 2017年 yule. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MujiDubDialogLinesModel;
@class MujiDubViewController;
@class MujiDubRecordModel;

@protocol MujiDubVCTableViewCellDelegate <NSObject>


- (void)pauseVideoPlayer;
- (void)playVideoAndRecord;
- (void)recordAction;

- (void)recordingBegin;
- (void)recordingEndWithData:(MujiDubRecordModel *)data;


@end


@interface MujiDubVCTableViewCell : UITableViewCell

@property (nonatomic, weak) MujiDubViewController *parentVC;
@property (nonatomic, assign) int   index;
@property (nonatomic, assign) int   totalIndex;
@property (nonatomic, copy) NSString   *dialogId;
@property (nonatomic, copy) NSString   *dialogLineID;
@property (nonatomic, copy) NSString   *userId;
@property (nonatomic, assign) BOOL isRecording;

@property (nonatomic, strong) UIButton *playRecordBtn;

@property (nonatomic, weak) id<MujiDubVCTableViewCellDelegate>   delegate;


-(void)resetBtnStatus:(BOOL)btnStatus playRecordStatus:(BOOL)status;
-(void)closeAllPlay;

//-(void)refreshData:(MujiDubDialogLinesModel*) model  words:(NSMutableArray*) wordArray selected:(BOOL)bSelect anyResult:(SpeakResultModel*) resultModel;

-(void)refreshData:(MujiDubDialogLinesModel*) model  words:(NSMutableArray*) wordArray selected:(BOOL)bSelect anyResult:(id) resultModel;


- (void)setSlowPlayBtnBackgroundWithStatus:(int)status;

- (void)setRecordResultStatus:(BOOL)status;

- (void)setRecordResultImageViewStatus:(BOOL)status;

- (void)stopRecording;

- (void)setWordBackGroundColorWithIndex:(int)index status:(int)status;

- (void)setPlayRecordStatus:(int)status;


@end
